package restless.core.gameObjs {
	
	import com.greensock.TweenMax;
	import flash.text.Font;
	import flash.text.TextField;
	import flash.text.TextFormat;
	import restless.core.interfaces.iMenu;
	import restless.menu.Menu;

	/**
	 * 
	 * @author Jordan Laine
	 * 
	 */
	
	public class RLEMenuObj extends RLEBlitMC {
		
		protected var bActivate:Boolean = false;
		private var _parentMenu:iMenu;
		private var _menu:iMenu;
		
		public function RLEMenuObj(menu:iMenu) {
			parentMenu = menu;
			shouldItText(true);
		}
		
		public function get tweenMax():TweenMax {
			return tween;
		}
		
		public function set activate(bool:Boolean):void {
			if (bool == bActivate) { return; }
			bActivate = bool;
		}
		
		public function set menu(m:iMenu):void {
			_menu = m;
		}
		
		public function get menu():iMenu {
			return _menu;
		}
		
		public function get activate():Boolean {
			return bActivate;
		}
		
		public function set parentMenu(pm:iMenu):void {
			_parentMenu = pm;
		}
		
		public function get parentMenu():iMenu {
			return _parentMenu;
		}
		
		override public function dispose():void {
			parentMenu = null;
			super.dispose();
		}
	}

}